﻿@{
    Layout = null;

    if (!(ViewBag.Project.ViewEngine == ViewEngine.WebForms))
    {
        WriteTo(new StringWriter(), RenderSection("webforms", false));
    }
    if (!(ViewBag.Project.ViewEngine == ViewEngine.Mvc))
    {
        WriteTo(new StringWriter(), RenderSection("mvc", false));
    }
    if (!(ViewBag.Project.ViewEngine == ViewEngine.Razor))
    {
        WriteTo(new StringWriter(), RenderSection("razor", false));
    }
}
@if (ViewBag.Project.ViewEngine == ViewEngine.WebForms)
{
@RenderSection("webforms")
}
else if (ViewBag.Project.ViewEngine == ViewEngine.Mvc)
{
@RenderSection("mvc")
}
else if (ViewBag.Project.ViewEngine == ViewEngine.Razor)
{
@RenderSection("razor")
}